package com.gitee.mrj.aiboot.annotation.config.sf.type;

import org.springframework.core.annotation.Order;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@Documented
@Order(1)
public @interface AlainField {
    String title() default "";

    /**
     * 必填项属性
     */
    boolean required() default false;

    /**
     * 属性目的性解释
     *
     * @return
     */
    String description() default "";


    /**
     * 是否只读状态
     */
    boolean readOnly() default false;


}
